package org.xjtu.weteam.service;

import org.xjtu.weteam.model.domain.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.xjtu.weteam.model.dto.UserDTO;

/**
 * @author Kevin
 */
public interface UserService extends IService<User>{
    User authenticate(Integer username, String password);

    User findByOpenid(String openid);

    void insertByOpenId(User user);

    UserDTO getUserInfoByToken(String token);

    boolean getUserId(String name);

    void setUserInfoByToken(String token, String userName, String imagePath);

    String getUserName(Integer id);
}
